|
dcmotor30 2.2.0
|
DC Motor 30 Click example. More...
Functions | |
| void | application_init (void) |
| void | application_task (void) |
| int | main (void) |
DC Motor 30 Click example.
This example demonstrates the control of a DC motor using the DC Motor 30 Click board. It performs motor driving in different modes (forward, brake, reverse, and coast) and periodically reads the output current and fault status.
The demo application is composed of two sections :
Initializes the logger and the Click board driver, then sets the default configuration.
Drives the motor in different states and monitors the current consumption and possible fault conditions.
| void application_init | ( | void | ) |
< Logger config object.
< Click config object.
Logger initialization. Default baud rate: 115200 Default log level: LOG_LEVEL_DEBUG
| void application_task | ( | void | ) |
| int main | ( | void | ) |